package request

import (
	"gitee.com/cjsn/topsdk/ability254/domain"
	"gitee.com/cjsn/topsdk/util"
)

type AlibabaSscSupplyplatformServiceworkerRegisterRequest struct {
	/*
	   工人注册model     */
	WorkerRegisterForTopReqDto *domain.AlibabaSscSupplyplatformServiceworkerRegisterWorkerRegisterForTopReqDTO `json:"worker_register_for_top_req_dto" required:"true" `
}

func (s *AlibabaSscSupplyplatformServiceworkerRegisterRequest) SetWorkerRegisterForTopReqDto(v domain.AlibabaSscSupplyplatformServiceworkerRegisterWorkerRegisterForTopReqDTO) *AlibabaSscSupplyplatformServiceworkerRegisterRequest {
	s.WorkerRegisterForTopReqDto = &v
	return s
}

func (req *AlibabaSscSupplyplatformServiceworkerRegisterRequest) ToMap() map[string]interface{} {
	paramMap := make(map[string]interface{})
	if req.WorkerRegisterForTopReqDto != nil {
		paramMap["worker_register_for_top_req_dto"] = util.ConvertStruct(*req.WorkerRegisterForTopReqDto)
	}
	return paramMap
}

func (req *AlibabaSscSupplyplatformServiceworkerRegisterRequest) ToFileMap() map[string]interface{} {
	fileMap := make(map[string]interface{})
	return fileMap
}
